<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>v-text练习</title>
		
	</head>
	<body>
		<div id="app">
		<h1> {{hello}}</h1>
		<div v-text="one" v-once></div>
		
		<hr />
		<!-- v-model 双向数据绑定 适用于输入框 
			1.data中的数据发生变化	
			-->
		<div style="border: aliceblue;" >
			<h3>双向数据绑定</h3>
			用户名:<input type="text" name="name" v-model="name"/>
		</div>
			
		</div>

		<script src="../js/vue.js"></script>

		<script>
			const app=new Vue({
				el:"#app",
				data:{
					hello: "你好憨批",
					one: "java学习",
					name:"憨批"
				}
			})
			
		</script>
	</body>
</html>
